package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 摄像机设置
 * </p>
 *
 * @author maoguanjun
 * @since 2023-04-20
 */
@Getter
@Setter
  @TableName("mes_camera")
@ApiModel(value = "MesCamera对象", description = "摄像机设置")
public class MesCamera implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("名称")
      @Size(min = 1, max = 50, message = "名称的长度在1到50之间")
      private String name;
      @ApiModelProperty("所属区域")
      @Size(min = 1, max = 100, message = "所属区域的长度在1到100之间")
      private String area;

      @ApiModelProperty("ip地址")
      private String ip;

      @ApiModelProperty("端口号")
      private Long port;

      @ApiModelProperty("用户")
      private String userName;

      @ApiModelProperty("密码")
      private String pwd;

      @ApiModelProperty("通道号")
      private Long iChannel;

      @ApiModelProperty("0：TCP方式,1：UDP方式,2：多播方式,3 - RTP方式，4-RTP/RTSP,5-RSTP/HTTP ,6- HRUDP（可靠传输） ,7-RTSP/HTTPS")
      private Integer dwLinkMode;

      @ApiModelProperty("0-非阻塞取流, 1-阻塞取流, 如果阻塞SDK内部connect失败将会有5s的超时才能够返回,不适合于轮询取流操作.")
      private Integer bBlocked;
      @ApiModelProperty("摄像机状态0:正常1：不正常")
      private Integer cameraWorkStatus;
      @ApiModelProperty("编码")
      private String code;
      @ApiModelProperty("备注")
      @Size(min = 1, max = 100, message = "备注的长度在1到100之间")
      private String remark;


}
